package com.lijianan.Controller;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class ApproveUser {
    private boolean approved; // 修改字段名与JSON属性匹配

    // 添加无参构造函数
    public ApproveUser() {}

    // 有参构造函数添加@JsonCreator注解
    @JsonCreator
    public ApproveUser(@JsonProperty("approved") boolean approved) {
        this.approved = approved;
    }

    // Getter和Setter方法使用标准命名
    public boolean isApproved() {
        return approved;
    }

    public void setApproved(boolean approved) {
        this.approved = approved;
    }

    @Override
    public String toString() {
        return "ApproveUser{" +
                "approved=" + approved +
                '}';
    }
}